Imports System.Collections.Generic
Imports System.Linq
Imports System.Text

Public Class RoomRow
	Public columns As RoomColumn()

	Public Sub New()
		columns = New RoomColumn(9) {}
		For x As Integer = 0 To columns.Length - 1
			columns(x) = New RoomColumn()

		Next
	End Sub

	Public Sub New(sizeX As Integer)
		columns = New RoomColumn(sizeX - 1) {}
		For x As Integer = 0 To columns.Length - 1
			columns(x) = New RoomColumn()
		Next
	End Sub

	'public RoomColumn LeftColumn(RoomColumn roomColumn)
	'{
	'    for (int x = 0; x < columns.Length; x++)
	'    {
	'        if (columns[x] == roomColumn)
	'        {
	'            if (x != 0)
	'                return columns[x - 1];
	'        }
	'    }
	'    return null;
	'}

	'public RoomColumn RightColumn(RoomColumn roomColumn)
	'{
	'    for (int x = 0; x < columns.Length; x++)
	'    {
	'        if (columns[x] == roomColumn)
	'        {
	'            if (x != columns.Length-1)
	'                return columns[x + 1];
	'        }
	'    }
	'    return null;
	'}

End Class
